#include <stdio.h>
//A>>X X>>C C>>Z
int main(){
	char a,b,c;
	for(a='X';a<='Z';a++){
		for(b='X';b<='Z';b++){
			for(c='X';c<='Z';c++){
				if(a!=b&&a!=c&&b!=c&&a!='X'&&c!='X'&&c!='Z'){
					printf("A->%c,B->%c,C->%c",a,b,c);
				}
			}
		}
	}return 0;
}
